GdPicture.NET.14
GdPicture14 Namespace / GdPictureOfficeTemplateBuilder<T> Class / AddSection<TObjectBuilder> Method
The type of the object builder for the section.
The name of the section.
An array of actions to build objects within the section.





In This Topic
AddSection<TObjectBuilder> Method (GdPictureOfficeTemplateBuilder<T>)
In This Topic
Adds a section containing objects to the template.
Syntax
'Declaration
 
Public Function AddSection(Of TObjectBuilder As {New, GdPictureOfficeTemplateBuilder(Of TObjectBuilder)})( _
   ByVal sectionName As String, _
   ByVal ParamArray arrayOfObjects() As Action(Of TObjectBuilder) _
) As T
public T AddSection<TObjectBuilder>( 
   string sectionName,
   params Action<TObjectBuilder>[] arrayOfObjects
)
where TObjectBuilder: new(), GdPictureOfficeTemplateBuilder<TObjectBuilder>
public function AddSection( 
    sectionName: String;
   params  arrayOfObjects: Actionarray of
): T; 
public function AddSection( 
   sectionName : String,
   arrayOfObjects : Action[]
) : T;
public: T* AddSection<TObjectBuilder>( 
   string* sectionName,
   params Action<TObjectBuilder*>*[]* arrayOfObjects
) 
where TObjectBuilder: gcnew(), GdPictureOfficeTemplateBuilder<TObjectBuilder>
public:
T^ AddSectiongeneric<typename TObjectBuilder>
( 
   String^ sectionName,
   ... array<Action<TObjectBuilder^>^>^ arrayOfObjects
) 
where TObjectBuilder: gcnew(), GdPictureOfficeTemplateBuilder<TObjectBuilder>

Parameters

sectionName
The name of the section.
arrayOfObjects
An array of actions to build objects within the section.

Type Parameters

TObjectBuilder
The type of the object builder for the section.

Return Value

The template builder instance.
See Also